<template>
    <view>
        <view>
            <view style="text-align:center;margin-top:60px">
                <uni-icons customPrefix="checkbox-filled" type="checkbox-filled" color="#1AC497" size="100"></uni-icons>
            </view>
            <view style="text-align:center;margin-top:30px;font-size:25px">
                成功
            </view>
            <view style="text-align:center;margin-top:10px;font-size:13px">
                账户信息如下：
            </view>
          <view style="text-align:center;margin-top:10px;font-size:13px">
            账号：{{account}}<br>
            密码：123456
          </view>
          <view style="padding: 30rpx;">
            <button class="uni-btn-v" style="margin-top:5%;" @click="tiaozhuan">去登录</button>
          </view>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                  account: '',
            };
        },

        onLoad(i) {
          this.account = i.account;
            // setTimeout(() => {
            //     uni.switchTab({
            //         url: '/pages/index/index',
            //         success(e) {
            //             let page = getCurrentPages().pop();
            //             if (page == undefined || page == null) { return; }
            //             page.onLoad();
            //         },
            //     });
            // }, 3000);
        },

        methods: {
          tiaozhuan() {
            uni.navigateTo({
              url: '/pages/login'
            })
          }

        },
    };
</script>

<style>
.uni-btn-v {
  width: 100%;
  height: 80rpx;
  line-height: 80rpx;
  background-color: #F9363A ;
  color: #fff;
  font-size: 35rpx;
  font-weight: bold;
  border-radius: 80rpx;
  text-align: center;
  margin-top: 30rpx;
}
</style>
